home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
printing
/
rlpr-1.000
/
rlpr-1
/
rlpr-1.13
/
rlpr-dbfile.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-30
|
1KB
|
28 lines
/* filename: rlpr-dbfile.h
* project: rlpr
* author: meem -- meem@sherilyn.wustl.edu
* version: $Id: rlpr-dbfile.h,v 1.3 1996/04/26 23:35:24 meem Exp $
* contents: prototypes and #defines for rlpr database file manipulation
*
* Time-stamp: <1996/04/26 18:35 -- meem@sherilyn.wustl.edu>
*/
#ifndef RLPR_DBFILE_H
#define RLPR_DBFILE_H
/* database properties */
#define DBNAME ".rlprrc" /* name of the database file */
#define DB_LINE_LEN 255 /* max length of a line in the database file */
#define FINDQ 1
#define FINDHOST 2
/* function prototypes */
char * getqfromhost(char *printhost); /* finds a printqueue name from a host */
char * gethostfromq(char *queue); /* finds a host from a printqueue name */
void opendbfile(void); /* opens the DBNAME file */
void closedbfile(void); /* closes the DBNAME file */
char * db_search(char *sstr, int TYPE); /* main search engine */
#endif /* RLPR_DBFILE_H */